import React, { Suspense } from 'react';
import ReactDOM from 'react-dom/client';
// import './index.css';
import App from './App';
import { BrowserRouter } from 'react-router-dom'
import 'antd-mobile-v2/dist/antd-mobile.less';
// import reportWebVitals from './reportWebVitals';
import { Provider } from 'react-redux'
import store from './store/store';


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <Suspense fallback={<div>正在加载中</div>}>
        <Provider store={store}>

            <BrowserRouter>
                <App />
            </BrowserRouter>

        </Provider>
    </Suspense>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
